<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>拼团详情 - 拼团商城</title>
    <style>
        body {
            margin: 0;
            padding: 30px;
            background: linear-gradient(135deg, #edf2f7, #e2e8f0);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
        }
        .container {
            max-width: 600px;
            margin: auto;
            background: white;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 12px 32px rgba(0,0,0,0.08);
            animation: fadeInUp 0.6s ease-out;
        }
        h2 {
            text-align: center;
            margin-bottom: 20px;
        }
        .info {
            font-size: 14px;
            margin: 10px 0;
        }
        .btn {
            display: block;
            margin: 30px auto 0;
            width: 100%;
            padding: 12px;
            background: linear-gradient(to right, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.3s;
        }
        .btn:hover {
            transform: scale(1.03);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }
        @keyframes fadeInUp {
            to { opacity: 1; transform: translateY(0); }
            from { opacity: 0; transform: translateY(30px); }
        }
        .btn-back {
            display: inline-block;
            padding: 10px 20px;
            font-size: 16px;
            font-weight: 500;
            color: white;
            background: linear-gradient(135deg, #c3aed6, #a393eb);
            border: none;
            border-radius: 12px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 14px rgba(163, 147, 235, 0.3);
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
        }

        .btn-back:hover {
            background: linear-gradient(135deg, #a393eb, #c3aed6);
            box-shadow: 0 6px 20px rgba(163, 147, 235, 0.4);
            transform: translateY(-2px);
        }

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    </style>
</head>
<body>
<div class="container">
    <h2>拼团详情</h2>
    <div class="info">商品名称：${group.product.name}</div>
    <div class="info">拼团价：${group.groupPrice}</div>
    <div class="info">开始时间：${group.startTime}</div>
    <div class="info">结束时间：${group.endTime}</div>
    <div class="info">拼团人数：${group.currentSize} / ${group.groupSize}</div>

    <!-- 返回按钮 -->
    <a href="javascript:history.back()" class="btn-back">← 返回</a>
</div>
</body>
</html>